/**
 *  fileName:shutdown.js
 *  time:2021/9/10
 *  todo:$END$
 */
const { exec } = require('child_process')
let target_time = new Date().toLocaleDateString() + ' 18:00'
const timer = setInterval(() => {
  if (new Date().getTime() > new Date(target_time).getTime()) {
    clearInterval(timer)
    exec('shutdown.exe -s -t 00 -f')
  }
}, 1000)

